package org.example.StudentManagementSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("classes")
@Schema(description = "班级实体类")
public class Class {
    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "班级ID", required = true)
    private Integer id;

    @Schema(description = "班级名称", required = true)
    private String name;

    @Schema(description = "教师ID", required = true)
    private Integer teacherId;
}
